import { HashRouter, useRoutes } from "react-router-dom";
import { Suspense } from "react";
import routes from "./router";
import "./style/App.less";

function App() {
  const Element = () => useRoutes(routes);

  return (
    <Suspense>
      <Element />
    </Suspense>
  );
}

export default App;
